<script src="#url('/static/js/common/commonImageUpload.js')"></script>
<script type="text/javascript">
    AppComm.include.load("#url('/static/js/common/commonSelectSearch.js')", "js");
    AppComm.include.load("#url('/static/js/example/selectSearch.js')", "js");
    AppComm.include.load("#url('/static/js/util/util.js')", "js");
    AppComm.include.load("#url('/static/js/manager/area.js')", "js");
</script>

<div class="animated fadeIn">
    <div style="text-align: left;">
        <span class="layui-breadcrumb">
                <a href="">系统管理</a>
                <a><cite>区域管理</cite></a>
        </span>
    </div>
    <hr>
    <div class="areaManager_box"></div>
</div>

<script id="areaManagerList_template" type="text/html">
    <div style="text-align: left;">
        <form class="layui-form" lay-filter="searchForm" action="">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input name="areaTitle" type="text" placeholder="地区标题" class="layui-input" style="width:200px;">
                </div>
            </div>
            <div class="layui-inline">
                &nbsp;&nbsp;
                <button class="layui-btn" lay-submit lay-filter="searchBtn">查询</button>
                <button class="layui-btn" id="addBtn">添加</button>
            </div>
        </form>
    </div>

    <div style="width:100%">
        <table id="tb_list" lay-filter="tb_list" style="width:100%"></table>
    </div>
</script>

<script type="text/html" id="toolbar">
    <a class="layui-btn layui-btn-xs" lay-event="editBtn">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="deleteBtn">删除</a>
</script>

<script id="areaManagerForm_template" type="text/html">
    <div class="layui-tab-item layui-show" style="width:722px;margin: 0 auto;">
        <form class="layui-form">
            <input type="hidden" id="id" name="id" value="{{id}}">

            <div class="layui-form-item">
                <label class="layui-form-label">地区标题</label>
                <div class="layui-input-block">
                    <input type="text" id="title" name="title" lay-verify="required" placeholder="请输入标题"
                           autocomplete="off" class="layui-input" value="{{title}}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">地区编码</label>
                <div class="layui-input-block">
                    <input type="text" id="areaId" name="areaId" lay-verify="required" placeholder="请输入地区编码"
                           autocomplete="off" class="layui-input" value="{{areaId}}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">地区拼音</label>
                <div class="layui-input-block">
                    <input type="text" id="code" name="code" placeholder="请输入地区拼音" autocomplete="off"
                           class="layui-input" value="{{code}}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">排序</label>
                <div class="layui-input-block">
                    <input type="text" id="orderId" name="orderId" lay-verify="number" placeholder="请输入排序数字"
                           autocomplete="off" class="layui-input" value="{{orderId}}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">父级</label>
                <div class="layui-input-block">
                    <div id="pidDiv" lay-filter="demoDivFilter" class="layui-form">
                        <select lay-search id="pid" name="pid" lay-filter="pid">
                        </select>
                    </div>
                </div>
            </div>

            <br>
            <div class="layui-form-item">
                <div class="layui-inline" style="margin-left: 245px;width:182px;">
                    <button class="layui-btn" id="saveBtn" lay-submit="" lay-filter="saveBtn1">提交</button>
                    <button class="layui-btn" id="cancelBtn">取消</button>
                    </button>
                </div>
            </div>
        </form>
    </div>
</script>